package com.yfp.client.domain.dto;

import cn.hutool.core.util.NumberUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StoredCalculateDTO {

    /**
     * 金额
     */
    private BigDecimal money;

    /**
     * 赠送金额
     */
    private BigDecimal giftMoney;

    @Override
    public String toString() {
        return "StoredDTO{" +
                "money=" + money +
                ", giftMoney=" + giftMoney +
                ", allMoney=" + NumberUtil.add(money, giftMoney) +
                '}';
    }
}
